{% extends "base.html" %}
{%- block meta -%}
<meta name="csrf-token" content="{{ csrf_token_r() }}">
{%- endblock %}
{%- block title %}{{ page_title|safe }}{%- endblock %}
{%- block head %}
{{ super() }}
<link rel="stylesheet" type="text/css" href="/static/css/dataTables.bootstrap-1.10.11.css">
{%- endblock %}
{%- block content %}
<div class="row">
    <div class="page-header">
        <h3 id="details">Build Details:&nbsp;</h3>
    </div>
    <div class="col-xs-12 col-sm-12 col-md-8 col-lg-8">
        <dl class="dl-horizontal">
            <dt>Tree</dt>
            <dd class="loading-content" id="tree">
                <small>
                    <i class="fa fa-circle-o-notch fa-spin fa-fw"></i>&nbsp;loading&hellip;
                </small>
            </dd>
            <dt>Git branch</dt>
            <dd class="loading-content" id="git-branch">
                <small>
                    <i class="fa fa-circle-o-notch fa-spin fa-fw"></i>&nbsp;loading&hellip;
                </small>
            </dd>
            <dt>Git describe</dt>
            <dd class="loading-content" id="git-describe">
                <small>
                    <i class="fa fa-circle-o-notch fa-spin fa-fw"></i>&nbsp;loading&hellip;
                </small>
            </dd>
            <dt>Defconfig</dt>
            <dd class="loading-content" id="build-defconfig">
                <small>
                    <i class="fa fa-circle-o-notch fa-spin fa-fw"></i>&nbsp;loading&hellip;
                </small>
            </dd>
            <dt>Git URL</dt>
            <dd class="loading-content" id="git-url">
                <small>
                    <i class="fa fa-circle-o-notch fa-spin fa-fw"></i>&nbsp;loading&hellip;
                </small>
            </dd>
            <dt>Git commit</dt>
            <dd class="loading-content" id="git-commit">
                <small>
                    <i class="fa fa-circle-o-notch fa-spin fa-fw"></i>&nbsp;loading&hellip;
                </small>
            </dd>
            <dt>Date</dt>
            <dd class="loading-content" id="build-date">
                <small>
                    <i class="fa fa-circle-o-notch fa-spin fa-fw"></i>&nbsp;loading&hellip;
                </small>
            </dd>
        </dl>
    </div>
    <div class="col-xs-12 col-sm-12 col-md-4 col-lg-4">
        <dl class="dl-horizontal">
            <dt>Status</dt>
            <dd class="loading-content" id="build-status">
                <small>
                    <i class="fa fa-circle-o-notch fa-spin fa-fw"></i>&nbsp;loading&hellip;
                </small>
            </dd>
            <dt>Architecture</dt>
            <dd class="loading-content" id="build-arch">
                <small>
                    <i class="fa fa-circle-o-notch fa-spin fa-fw"></i>&nbsp;loading&hellip;
                </small>
            </dd>
            <dt>Build errors</dt>
            <dd class="loading-content" id="build-errors">
                <small>
                    <i class="fa fa-circle-o-notch fa-spin fa-fw"></i>&nbsp;loading&hellip;
                </small>
            </dd>
            <dt>Build warnings</dt>
            <dd class="loading-content" id="build-warnings">
                <small>
                    <i class="fa fa-circle-o-notch fa-spin fa-fw"></i>&nbsp;loading&hellip;
                </small>
            </dd>
            <dt>Build time</dt>
            <dd class="loading-content" id="build-time">
                <small>
                    <i class="fa fa-circle-o-notch fa-spin fa-fw"></i>&nbsp;loading&hellip;
                </small>
            </dd>
        </dl>
    </div>
    <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
        <dl class="dl-horizontal">
            <dt>Compiler</dt>
            <dd class="loading-content" id="compiler">
                <small>
                    <i class="fa fa-circle-o-notch fa-spin fa-fw"></i>&nbsp;loading&hellip;
                </small>
            </dd>
            <dt>Compiler version</dt>
            <dd class="loading-content" id="compiler-version">
                <small>
                    <i class="fa fa-circle-o-notch fa-spin fa-fw"></i>&nbsp;loading&hellip;
                </small>
            </dd>
            <dt>Compiler string</dt>
            <dd class="loading-content" id="compiler-version-full">
                <small>
                    <i class="fa fa-circle-o-notch fa-spin fa-fw"></i>&nbsp;loading&hellip;
                </small>
            </dd>
            <dt>Cross-compile</dt>
            <dd class="loading-content" id="cross-compile">
                <small>
                    <i class="fa fa-circle-o-notch fa-spin fa-fw"></i>&nbsp;loading&hellip;
                </small>
            </dd>
        </dl>
    </div>
    <div class="col-xs-12 col-sm-12 col-md-4 col-lg-4">
        <dl class="dl-horizontal">
            <dt>Build logs</dt>
            <dd class="loading-content" id="build-log">
                <small>
                    <i class="fa fa-circle-o-notch fa-spin fa-fw"></i>&nbsp;loading&hellip;
                </small>
            </dd>
            <dt>Kernel config</dt>
            <dd class="loading-content" id="kernel-config">
                <small>
                    <i class="fa fa-circle-o-notch fa-spin fa-fw"></i>&nbsp;loading&hellip;
                </small>
            </dd>
            <dt>Config fragments</dt>
            <dd class="loading-content" id="config-fragments">
                <small>
                    <i class="fa fa-circle-o-notch fa-spin fa-fw"></i>&nbsp;loading&hellip;
                </small>
            </dd>
            <dt>Text offset</dt>
            <dd class="loading-content" id="text-offset">
                <small>
                    <i class="fa fa-circle-o-notch fa-spin fa-fw"></i>&nbsp;loading&hellip;
                </small>
            </dd>
        </dl>
    </div>
    <div class="col-xs-12 col-sm-12 col-md-4 col-lg-4">
        <dl class="dl-horizontal">
            <dt>Dtb</dt>
            <dd class="loading-content" id="dtb-dir">
                <small>
                    <i class="fa fa-circle-o-notch fa-spin fa-fw"></i>&nbsp;loading&hellip;
                </small>
            </dd>
            <dt>Modules</dt>
            <dd class="loading-content" id="build-modules">
                <small>
                    <i class="fa fa-circle-o-notch fa-spin fa-fw"></i>&nbsp;loading&hellip;
                </small>
            </dd>
            <dt>Kernel image</dt>
            <dd class="loading-content" id="kernel-image">
                <small>
                    <i class="fa fa-circle-o-notch fa-spin fa-fw"></i>&nbsp;loading&hellip;
                </small>
            </dd>
            <dt>System map</dt>
            <dd class="loading-content" id="system-map">
                <small>
                    <i class="fa fa-circle-o-notch fa-spin fa-fw"></i>&nbsp;loading&hellip;
                </small>
            </dd>
        </dl>
    </div>
    <div class="col-xs-12 col-sm-12 col-md-4 col-lg-4">
        <dl class="dl-horizontal">
            <dt>ELF file size</dt>
            <dd class="loading-content" id="elf-file-size">
                <small>
                    <i class="fa fa-circle-o-notch fa-spin fa-fw"></i>&nbsp;loading&hellip;
                </small>
            </dd>
            <dt>ELF .bss section size</dt>
            <dd class="loading-content" id="elf-bss-size">
                <small>
                    <i class="fa fa-circle-o-notch fa-spin fa-fw"></i>&nbsp;loading&hellip;
                </small>
            </dd>
            <dt>ELF .data section size</dt>
            <dd class="loading-content" id="elf-data-size">
                <small>
                    <i class="fa fa-circle-o-notch fa-spin fa-fw"></i>&nbsp;loading&hellip;
                </small>
            </dd>
            <dt>ELF .txt section size</dt>
            <dd class="loading-content" id="elf-txt-size">
                <small>
                    <i class="fa fa-circle-o-notch fa-spin fa-fw"></i>&nbsp;loading&hellip;
                </small>
            </dd>
        </dl>
    </div>
</div>
<div class="row hidden" id="bisect">
    <div class="page-header"><h3>Build Bisect</h3></div>
    <div class="hidden" id="bisect-div">
        <div id="bisect-default" class="other-header">
            <h4>Default bisect</h4>
            {# Placeholder for the show/hide button created dynamically #}
            <span class="pull-right" id="buildb-showhide"></span>
            <hr class="blurred subheader" />
        </div>
        <div id="view-buildb-showhide" class="pull-center"></div>
        {%- include "other-bisect-content.html" %}
    </div>
    <div class="hidden" id="bisect-compare-div">
        <div id="bisect-compared" class="other-header">
            <h4>Compared to &#171;mainline&#187;</h4>
            {# Placeholder for the show/hide button created dynamically #}
            <span class="pull-right" id="buildb-compare-showhide"></span>
            <hr class="blurred subheader" />
        </div>
        <div id="view-buildb-compare-showhide" class="pull-center"></div>
        {%- include "other-bisect-compare-content.html" -%}
    </div>
</div>
<div class="row">
    <div class="page-header">
        <h3 id="test-results">Test Results</h3>
    </div>
    <div id="table-loading" class="pull-center">
        <small>
            <i class="fa fa-circle-o-notch fa-spin fa-fw"></i>&nbsp;searching test data&hellip;
        </small>
    </div>
{%- if is_mobile %}
    <div class="table-responsive" id="tests-table-div">
{%- else %}
    <div class="table" id="tests-table-div">
{%- endif %}
        <table class="table table-hover table-striped table-condensed clickable-table big-table" id="tests-table">
        </table>
    </div>
</div>
<div class="row">
    <div class="page-header">
        <h3 id="platform">Build Platform</h3>
    </div>
    <div id="build-platform">
        <div class="col-xs-7 col-sm-7 col-md-7 col-lg-7">
            <dl class="dl-horizontal">
                <dt>System</dt>
                <dd class="loading-content" id="platform-system">
                    <small>
                        <i class="fa fa-circle-o-notch fa-spin fa-fw"></i>&nbsp;loading&hellip;
                    </small>
                </dd>
                <dt>Node name</dt>
                <dd class="loading-content" id="platform-node">
                    <small>
                        <i class="fa fa-circle-o-notch fa-spin fa-fw"></i>&nbsp;loading&hellip;
                    </small>
                </dd>
                <dt>Release</dt>
                <dd class="loading-content" id="platform-release">
                    <small>
                        <i class="fa fa-circle-o-notch fa-spin fa-fw"></i>&nbsp;loading&hellip;
                    </small>
                </dd>
                <dt>Full release</dt>
                <dd class="loading-content" id="platform-full-release">
                    <small>
                        <i class="fa fa-circle-o-notch fa-spin fa-fw"></i>&nbsp;loading&hellip;
                    </small>
                </dd>
            </dl>
        </div>
        <div class="col-xs-5 col-sm-5 col-md-5 col-lg-5">
            <dl class="dl-horizontal">
                <dt>Machine type</dt>
                <dd class="loading-content" id="platform-machine">
                    <small>
                        <i class="fa fa-circle-o-notch fa-spin fa-fw"></i>&nbsp;loading&hellip;
                    </small>
                </dd>
                <dt>CPU</dt>
                <dd class="loading-content" id="platform-cpu">
                    <small>
                        <i class="fa fa-circle-o-notch fa-spin fa-fw"></i>&nbsp;loading&hellip;
                    </small>
                </dd>
            </dl>
        </div>
    </div>
</div>
<input type="hidden" id="file-server" value="{{ config['FILE_SERVER_URL'] }}">
<input type="hidden" id="build-id" value="{{ build_id }}">
{%- endblock %}
{%- block scripts %}
<script data-main="/static/js/kci-builds-id" src="/static/js/lib/require.js"></script>
{%- endblock %}
